let mix = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

// mix.js('resources/assets/js/app.js', 'public/js')
//    .sass('resources/assets/sass/app.scss', 'public/css');


// mix admin resources
mix.styles([
    'public/admin-assets/css/bootstrap.min14ed.css',
    'public/admin-assets/css/font-awesome.min93e3.css',
    'public/admin-assets/css/plugins/iCheck/custom.css',
    // chosen
    'public/admin-assets/css/plugins/chosen/chosen.css',
    // radio 美化
    'public/admin-assets/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css',
    // Gritter
    'public/admin-assets/js/plugins/gritter/jquery.gritter.css',
    'public/admin-assets/css/animate.min.css',
    'public/admin-assets/css/style.min862f.css',
    // switchery
    'public/admin-assets/css/plugins/switchery/switchery.css',
    // toastr
    'public/admin-assets/css/plugins/toastr/toastr.min.css',
    'public/admin-assets/css/base.css',
    // date range picker
    'public/admin-assets/js/plugins/daterangepicker/daterangepicker.css',
    // jsTree
    'public/admin-assets/css/plugins/jsTree/style.min.css'
], 'public/css/admin.css')
    .scripts([
        // package js
        'public/admin-assets/js/jquery.min.js',
        'public/admin-assets/js/bootstrap.min.js',
        'public/admin-assets/js/plugins/chosen/chosen.jquery.js',
        'public/admin-assets/js/plugins/iCheck/icheck.min.js',
        'public/admin-assets/js/plugins/switchery/switchery.js',
        'public/admin-assets/js/plugins/toastr/toastr.min.js',
        'public/admin-assets/js/plugins/daterangepicker/moment.min.js',
        'public/admin-assets/js/plugins/daterangepicker/daterangepicker.js',
        'public/admin-assets/js/plugins/jsTree/jstree.min.js',

        // jquery ready js
        'public/admin-assets/js/init-plugins.js',
    ], 'public/js/admin.js');

if (mix.config.inProduction) {
    mix.version();
}

mix.browserSync('finance.app');